package com.Interface.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.Interface.dao.NoticeInfoMapper;
import com.Interface.entity.NoticeInfo;

@Service
public class NoticeInfoService {
	@Autowired
	NoticeInfoMapper noticeInfoDao;
	public  int insertSelective(NoticeInfo record){
		 return noticeInfoDao.insertSelective(record);
	 }
	public List<Map<String, Object>> selectUserNotice(Map<String, Object> param){
		return noticeInfoDao.selectUserNotice(param);
	}
	
	public int updateHasGetNoticeInfo(Map<String, Object> param){
		return noticeInfoDao.updateHasGetNoticeInfo(param);
	}
	
	public int getAlertNum(int userId){
		return noticeInfoDao.getAlertNum(userId);
	}

}
